﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.TenderBond
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.TenderBond;
    public class Map_BZJ_Tender_Bond_Record : EntityMapping<BZJ_Tender_Bond_Record>
    {
        public Map_BZJ_Tender_Bond_Record()
        {
            Property(x => x.BackReason, map => map.Length(1000));
            Property(x => x.BackResultFlag, map => map.Length(10));
            Property(x => x.BackResultDate);
            Property(x => x.BackResultMsg, map => map.Length(1000));
            Property(x => x.BackType, map => map.Length(100));
            Property(x => x.InTranAmt);

            ManyToOne(x => x.PE, map =>
            {
                map.Column("PEId");
            });

            Property(x => x.Gernal);
            Property(x => x.HstSeqNum, map => map.Length(50));
            Property(x => x.InAcct, map => map.Length(50));
            Property(x => x.InAmount, map => map.Length(50));
            Property(x => x.InBankName, map => map.Length(100));
            Property(x => x.InBankNo, map => map.Length(100));
            Property(x => x.InDateTime);
            Property(x => x.InMemo, map => map.Length(1000));
            Property(x => x.InName, map => map.Length(100));

            ManyToOne(x => x.SubAccount, map =>
            {
                map.Column("SubAccountId");
            });

            //当前利息
            Property(x => x.PunInst);


            //
            Property(x => x.PayType, map => map.Length(100));
            Property(x => x.CurrencyType, map => map.Length(100));
            Property(x => x.BondUnit, map => map.Length(100));

            //服务费
            Property(x => x.fwfIsIn);
            Property(x => x.fpCode, map => map.Length(40));
            Property(x => x.fpFlag);
            Property(x => x.Remark, map => map.Length(80000000));
        }
    }
}
